home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / nn.zip / MAKEFILE < prev    next >
Text File  |  1989-12-31  |  2KB  |  86 lines

  1. #
  2. # Makefile for nn release 6.3
  3. #
  4. # Specify your favourite compiler, preprocessor, and compiler flags:
  5. #
  6. # Some alternatives for CPP might be /lib/cpp and $(CC) -P
  7. # Common values for CFLAGS are '-O -s' or '-g'
  8. #
  9.  
  10. CC =        cc
  11. CPP =        $(CC) -E
  12. CFLAGS =    -O
  13. MAKE =        make
  14.  
  15. #
  16. # Before compiling, read the instructions in the file INSTALLATION!
  17. # -----------------------------------------------------------------
  18. #
  19. #    make all    compile programs
  20. #    make install    install programs
  21. #    make initdb    initialize database
  22. #    make clean    remove all make'd files from source directory
  23. #
  24. # no changes are needed below this line
  25. #
  26.  
  27. SHELL = /bin/sh
  28.  
  29. all: ymakefile
  30.     $(MAKE) $(MFLAGS) -f ymakefile all
  31.  
  32. nn: ymakefile
  33.     $(MAKE) $(MFLAGS) -f ymakefile nn
  34.  
  35. lint: ymakefile
  36.     $(MAKE) -f ymakefile lint
  37.  
  38. install: ymakefile
  39.     $(MAKE) $(MFLAGS) -f ymakefile install
  40.  
  41. initdb: ymakefile
  42.     $(MAKE) $(MFLAGS) -f ymakefile initdb
  43.  
  44. online: ymakefile
  45.     $(MAKE) $(MFLAGS) -f ymakefile online.manual
  46.  
  47. client: ymakefile
  48.     $(MAKE) $(MFLAGS) -f ymakefile client
  49.  
  50. install.client: ymakefile
  51.     $(MAKE) $(MFLAGS) -f ymakefile install.client
  52.  
  53. ymakefile: Makefile xmakefile config.h
  54.     cp xmakefile MF.c
  55.     $(CPP) -DCOMPILER="$(CC)" -DPREPROC="$(CPP)" \
  56.            -DCDEBUG="$(CFLAGS)" MF.c | \
  57.     sed -e '1,/MAKE WILL CUT HERE/d' \
  58.         -e '/^#/d' \
  59.         -e '/^[ \f    ]$$/d' \
  60.         -e '/^[ /]*[*]/d' | \
  61.     sed -n -e '/^..*$$/p' > ymakefile
  62.     rm -f MF.c
  63.  
  64. #
  65. # clean up 
  66. #    Will remove object and executeable files.
  67. #
  68.  
  69. clean:    ymakefile
  70.     make -f ymakefile clean
  71.     rm -f *.o *~ ymakefile
  72.  
  73. #
  74. # distribution
  75. #
  76.  
  77. distrib:
  78.     [ ! -d DIST ]
  79.     mkdir DIST
  80.     cp `cat MANIFEST` DIST
  81.     echo '#define UPDATE 0' > DIST/update.h
  82.     cd DIST ; shar -v -s -d'NO_NEWS_IS_GOOD_NEWS' \
  83.           -onn-6.3. -l50 `cat MANIFEST`
  84.  
  85.  
  86.